
//var 类型
var arr = [1,2,3,4,5]; //数组类型
var age = 10;
var object = {} //对象类型
var user = {
    age:18
    name:"zhang"
    matrimony:false
    jobs:["teacher","programmer"]
}
//对象
console.log(typeof age) //判断数据类型
const {age,name} = user //对象解构赋值
console.log(age,name) //直接使用变量

const { log， error } = console;
log("hello world"); // 输出 hello world
* 注意
        var user = {
            name: " iwen",
            age: 30,
        }
        let name = "iwen"

            ({ name } = user);